<?php /* Smarty version Smarty-3.1.12, created on 2016-07-11 14:18:19
         compiled from "D:\phpStudy\WWW\demonew\dm\xycms\login.tpl" */ ?>
<?php /*%%SmartyHeaderCode:1080257833a2b07c8a8-01665341%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '9c74f71c2fd55914b0be37c2337fe6b0b45883b4' => 
    array (
      0 => 'D:\\phpStudy\\WWW\\demonew\\dm\\xycms\\login.tpl',
      1 => 1464933811,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '1080257833a2b07c8a8-01665341',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'page_charset' => 0,
    'config' => 0,
    'copyright_author' => 0,
    'version' => 0,
    'style' => 0,
    'urlpath' => 0,
    'vsion' => 0,
    'notice' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.12',
  'unifunc' => 'content_57833a2b0ede54_03312463',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_57833a2b0ede54_03312463')) {function content_57833a2b0ede54_03312463($_smarty_tpl) {?><!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $_smarty_tpl->tpl_vars['page_charset']->value;?>
" />
<title>管理员登录-[<?php echo $_smarty_tpl->tpl_vars['config']->value['sitename'];?>
]</title>
<meta name="author" content="<?php echo $_smarty_tpl->tpl_vars['copyright_author']->value;?>
" />
<?php if ($_smarty_tpl->tpl_vars['version']->value=='fuxing'){?>
 <link href="xycms/css/fuxing.css" rel="stylesheet" type="text/css" />
   <?php }else{ ?>
  <link href="xycms/css/admin.css" rel="stylesheet" type="text/css" />
<?php }?>
<link href="xycms/css/<?php echo $_smarty_tpl->tpl_vars['style']->value;?>
.css" rel="stylesheet" type="text/css" />
<link href="xycms/css/animate.css" rel="stylesheet" type="text/css" />
<script type='text/javascript' src='js/jquery-1.8.3.min.js'></script>
</head>
<div class="login-error"><img src="<?php echo $_smarty_tpl->tpl_vars['urlpath']->value;?>
dm/xycms/images/notice.png" />密码连续累计出错超过5次，90秒后才能重新登陆！</div>   
<body id="login">
<div id="login-wrap">
  <div class="login-main">
  <?php if ($_smarty_tpl->tpl_vars['version']->value=='fuxing'){?>
  <h1>福星平台网站管理系统</h1>
  <?php }else{ ?>
  <h1>祥云平台网站管理系统</h1>
  <?php }?>
    
	<div class="login-cont">
	  <form id="loginFrm" action="login.php" method="post" onsubmit="return checkform();">
	  <input type="hidden" name="action" value="loginpost" />
	  <div class="account1">
	    <label>登录帐号：</label>
		<input class="input-txt" id="username" name="username" type="text" />
	  </div>
	  <div class="account1">
	    <label for="">登录密码：</label>
		<input class="input-txt" id="password" name="password" type="password" />
	  </div>
	  <div class="account1">
	    <label for="">验 证 码：</label>
		<input class="input-txt wyy" id="checkcode" name="checkcode" type="text" autocomplete="off" />
        <img id="checkCodeImg" onclick="refreshCc()" src="../data/include/imagecode.php?act=verifycode" width="100" height="36" />	
	  </div>
	  <input class="admin_login" name=""  type="submit" value="登 录" />
	  </form>
	</div>
  	<div class="copyright">
		Copyright &copy;2014  版本：<?php echo $_smarty_tpl->tpl_vars['vsion']->value;?>
  <a href="../" target="_blank">返回首页</a>
	</div>
  </div>
</div>

<script language="javascript" type="text/javascript">
var notice = '<?php echo $_smarty_tpl->tpl_vars['notice']->value;?>
';
if(notice == 'error'){
	$(".login-error").css('display','block');
	$(".login-error").addClass('animated fadeInDownBig');
	setTimeout(function(){
		$(".login-error").removeClass('animated fadeInDownBig').addClass('animated bounceOutLeft');
	},4000);
}
function refreshCc() {
	var ccImg = document.getElementById("checkCodeImg");
	if (ccImg) {
		ccImg.src = '../data/include/imagecode.php?act=verifycode&random='+Math.random();
	}
}
function checkform(){
    if($("#username").val()==""){
	    alert("登录帐号不能为空");
		$("#username").focus();
		return false;
	}
    if($("#password").val()==""){
	    alert("登录密码不能为空");
		$("#password").focus();
		return false;
	}
    if($("#checkcode").val()==""){
	    alert("验证码不能为空");
		$("#checkcode").focus();
		return false;
	}
	return true;
}
</script>

</body>
</html>

<?php }} ?>